/*
 * @Author: andy.dell andy@long.com
 * @Date: 2024-01-01 09:21:20
 * @LastEditors: andy.dell andy@long.com
 * @LastEditTime: 2024-01-01 09:21:34
 * @FilePath: \wasm\logic\snake\src\console\clear.go
 * @Description:
 */
package console

import (
	"os"
	"os/exec"
)

func clear() {
	cmd := exec.Command("cmd", "/c", "cls") // Windows系统
	// cmd := exec.Command("clear") // Linux或Mac系统
	cmd.Stdout = os.Stdout
	cmd.Run()
}
